#include "scenes/SceneSplash.h"

SceneSplash::SceneSplash( GameApplication& theApp )
   : App( theApp )
{
	// None
}

void SceneSplash::Initialize()
{
	// None
}

void SceneSplash::Terminate()
{
	// None
}

void SceneSplash::Step( gdn::Window& window )
{
	gdn::Event Event;
	while ( window.GetEvent( Event ) )
	{
		if ( Event.type == gdn::Event::WindowClosed )
		{
			App.Close();
		}
		else if ( Event.type == gdn::Event::MouseButtonPressed )
		{
			App.SetActiveScene( "Main Menu" );
		}
	}
}

void SceneSplash::Draw( gdn::Window& window )
{
	window.Clear();

	gdn::Sprite sprite;
	sprite.SetImage( *App.Images.GetResource( App.GameResources[ "splash splash" ] ) );

	window.Draw( sprite );

	window.Display();
}
